﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GMUtilitiesDotNet.Helpers
{
    public static class MathHelpers
    {
        #region Methods
        public static int GetLimitedInt(int pValue, int pMin, int pMax)
        {
            return Math.Min(Math.Max(pMin, pValue), pMax);
        }

        public static double GetLimitedDouble(double pValue, double pMin, double pMax)
        {
            return Math.Min(Math.Max(pMin, pValue), pMax);
        }
        #endregion
    }
}